package com.qiantu.phone.ui.adapter;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.qiantu.api.entity.SceneDetailBean;
import com.qiantu.phone.R;
import com.qiantu.phone.ui.activity.EditScenePrivateActivity;

import org.jetbrains.annotations.NotNull;

public class ScenePrivateDetailAdapter extends SceneDetailBaseAdapter {

    public ScenePrivateDetailAdapter(EditScenePrivateActivity activity, SceneDetailBean mSceneDetailBean){
        super(activity, mSceneDetailBean);
        hasDelete = false;
    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = null;
        if (viewType == TOP_VIEW_TYPE) {
            view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_edit_private_scene_top, parent, false);
            return new TopItemViewHolder(view);
        } else {
            return super.onCreateViewHolder(parent, viewType);
        }
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) {
        super.onBindViewHolder(viewHolder, position);
    }

    private class TopItemViewHolder extends RecyclerView.ViewHolder {
        public TopItemViewHolder(@NonNull @NotNull View itemView) {
            super(itemView);
        }
    }
}
